export interface ILoginData {
  userName: string;
  userPwd: string;
}

export interface IDeptSearchParams {
  deptName?: string;
}

export interface IDepth {
  _id: string;
  deptName: string;
  userName: string;
  parentId: string;
  createId: number;
  updateTime: string;
  createTime: string;
  __v: number;
  children?: IDepth[];
}
// 用户模块
export interface IUser {
  _id: string;
  userName: string;
  userPwd: string;
  createId: number;
  updateTime: string;
  createTime: string;
  __v: number;
}
// 菜单模块

// 搜索参数
export interface ISearchParams {
  menuName: string;
  menuState: number;
}

// 菜单项接口
export interface IMenu {
  _id: string;
  menuType: number;
  menuName: string;
  path?: string;
  icon?: string;
  menuCode?: string;
  orderBy: number;
  menuState: number;
  parentId: string;
  createId: number;
  createTime: string;
  updateTime: string;
  __v: number;
  children?: IMenu[];
  buttons?: IButton[];
}

// 按钮项接口
export interface IButton {
  _id: string;
  menuType: number;
  menuName: string;
  menuCode: string;
  orderBy: number;
  menuState: number;
  parentId: string;
  createId: number;
  createTime: string;
  updateTime: string;
  __v: number;
}
